home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16058 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  918 b 

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Arrays in C and c++
  5. Date: 9 Apr 1996 10:48:36 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4kdfa4$snu@sparcserver.lrz-muenchen.de>
  9. References: <4kc929$38k@hermes.acs.unt.edu>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. jnr0001@jove.acs.unt.edu (Joseph Neal Rake) writes:
  13.  
  14. >Is it possible to do 2 dimensional arrays in C or C++?  If so, how?
  15.  
  16. >This is probably a related question:  How does one do an array of strings 
  17. >in C or C++, since 1 string is already an array?
  18.  
  19. C:   use an array of arrays.
  20. C++: <string> should be pretty wide-spread nowadays, so an array
  21.      (or vector, if you have access to the STL) should be what
  22.      you are looking for.
  23.  
  24. Kurt
  25. -- 
  26. | Kurt Watzka                             Phone : +49-89-2180-6254
  27. | watzka@stat.uni-muenchen.de
  28.